<template>
  <my-render :scope="{}" :render="render" />
</template>

<script>
import myRender from './Renders/index.vue'
export default {
  name: 'TextInput',
  components: {
    myRender: myRender
  },
  // eslint-disable-next-line vue/require-prop-types
  props: ['render'],
  data() {
    return {
      currentValue: this.value
    }
  },
  watch: {
    value(val) {
      this.currentValue = val
    }
  },
  created() {
    this.currentValue = this.value
  },
  methods: {
    onInputEvent(value) {
      this.$emit('input', this.name, value)
    }
  }
}
</script>

<style >
.el-input.is-disabled .el-input__inner {
  color: #606266 !important;
}
</style>
